package com.example.ccj.u.sqlite;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

import java.util.Map;

/**
 * SQlite数据库类
 */
public class SqliteDatabaseHelper extends SQLiteOpenHelper {
    private Context mContext;
    private Map<String,String> tableField;

    /**
     * 默认构造器，新建一个名称为pksh的数据库
     * @param context
     */
    public SqliteDatabaseHelper(Context context) {
        super(context, "pksh", null, 1);
        this.mContext = context;
    }

    /**
     * 二类构造器，根据传入的名称构造数据库
     * @param context
     * @param dataBaseName 数据库名称
     */
    public SqliteDatabaseHelper(Context context, String dataBaseName) {
        super( context, dataBaseName, null, 1);
        this.mContext = context;
    }

    @Override
    public void onCreate(SQLiteDatabase db) {

    }

    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {

    }


}
